﻿(function ($) {
    methods = {
        _init: function (pop,useroptions) { 
        }
    };
    $.fn.popup = function (arg) {
        var pop = $(this);
        if (typeof (arg) == 'string' && arg.charAt(0) != '_' && methods[arg]) {
            return methods[arg].apply(pop, Array.prototype.slice.call(arguments, 1));
        } else if (typeof arg == 'object' || !arg) {
            return methods._init(pop, arguments[0]);
        } else {
            $.error(arg + ' does not exist in jQuery.popup');
        }
    }
})(jQuery)